package top.suven.base.oauth.dto.request;

import top.suven.base.oauth.dto.response.AuthorizeResponseDto;
import top.suven.base.util.createcode.DocDesc;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: 认证数据传输请求对象
 * @Description:
 * @Author lixiangling
 * @Date 2018/5/15 18:03
 * @Copyright: (c) 2018 gc by https://www.gc.com.cn/
 * @Version : 1.0.0
 */

@DocDesc(desc = "验证TOKEN接口",url = "zookeeper://xxx.xxx.xxx.xxx:xxxx/cn.com.gc.hsz.oauth.service.AuthorizeService", body = AuthorizeResponseDto.class)
public class AuthorizeRequestDto implements Serializable{
    private static final long serialVersionUID = 4932999790732144458L;
    @DocDesc(desc = "客户端编号")
    private long clientId;
    @DocDesc(desc = "用戶编号")
    private long userId;
    @DocDesc(desc = "授权码")
    private String authCode;//授权码
    @DocDesc(desc = "令牌")
    private String accessToken;
    @DocDesc(desc = "用戶账号")
    private String userName;


    private List<LoginConsumerRequestDto> loginConsumerRequestDtos;

    public long getClientId() {
        return clientId;
    }

    public void setClientId(long clientId) {
        this.clientId = clientId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public List<LoginConsumerRequestDto> getLoginConsumerRequestDtos() {
        return loginConsumerRequestDtos;
    }

    public void setLoginConsumerRequestDtos(List<LoginConsumerRequestDto> loginConsumerRequestDtos) {
        this.loginConsumerRequestDtos = loginConsumerRequestDtos;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
